import { reactive } from "vue";
import { getList, del, deleteAll } from '../../service/store/store';
import { TableType } from "../../components/table/Table";
export const tableConfig = reactive<TableType>({
    loadData: getList,
    delete: del,
    deleteAll: deleteAll,
    columns:[{
        prop: "id",
        label: "id",
        attrs: { widht: 80 }
    },
    {
        prop: "name",
        label: "门店",
    },
    {
        prop: "address",
        label: "地址",
    },
    {
        prop: "logo",
        label: "门店logo",
        image: true, 
    },
    {
        prop: "services",
        label: "服务范围",
    },
    {
        prop: "username",
        label: "店主",
    },
    {
        prop: "tel",
        label: "联系电话",
    },
    {
        prop: "startTime",
        label: "营业时间",
        
    },
    {
        prop: "operate",
        label: "操作",
        slot: true,
        attrs: { width:180,fixed: "right" }
    }
    ]
    
  })
  
  
//添加信息默认
import { DataInfo } from '../../service/userinfo/type';
export const editUser = reactive<DataInfo>({
  id: 0,
  photo: "",
  name: "",
  houseid: null,
  usertype: null,
  sex: 0,
  buildingid: null,
  mobile: "",
  usernative: "",
  cardid: "",
  nation: ""
})